//  
//   NSString+JKTimeExtension.m
//   QQMusic
//  
//   Created by albert on 16/4/7.
//   Copyright (c) 2016年 albert. All rights reserved.
//  

#import "NSString+JKTimeExtension.h"

@implementation NSString (JKTimeExtension)
//  返回播放时间的字符。写成NSString的分类
+ (NSString *)stringWithTime:(NSTimeInterval)time{
    NSInteger minnute = time / 60;
    
    //  double类型不能mol取余
    NSInteger second = (NSInteger)time % 60;
    
    return [NSString stringWithFormat:@"%02zd:%02zd", minnute, second];
}
@end
